/**
 * User: c3t
 * Date: 14-2-3
 * Time: 下午5:16
 */
define(function (require, exports, module) {

    var $ = require('js/lib/jquery');
    require('js/lib/core/jquery.cms.tree');


    //修改异步加载树的url $("#tree").mytree({url:admin/channel/xxx});
    //修改回调函数 $("#tree").mytree({mine:{listChild:0}});
    var treexx = $("#tree").mytree();

    function refreshTree() {
        return (function () {
            return treexx;
        })()

    }

    function rt(xxx) {
        treexx.reAsyncChildNodes(null, "refresh");
    }

    exports.rtree = rt;

    /*   var setting = {
     data: {
     simpleData: {
     enable: true,
     idKey: "id",
     pIdKey: "pid",
     rootPId: -1
     }
     },
     //异步加载按节点加载
     async: {
     enable: true,
     url: "admin/channel/treeAll"
     },
     view: {
     dblClickExpand: false,
     selectedMulti: false,
     showLine: false
     },
     callback: {
     onClick: function (event, treeId, treeNode) {

     $("#cc").attr("src", "admin/channel/channels/" + treeNode.id);
     }
     }
     };

     var treeObj = $.fn.zTree.init($("#tree"), setting);*/


});
